<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<jsp:include page="/admin/view/main/header.jsp" />

<!-- business code start -->

<form id="frm_merchant"
	action="/merchantManager/insertMerchant.action" method="post" class="definewidth m20" >
	<table class="table table-bordered table-hover definewidth m10">
		<tr>
			<td class="tableleft">商家名称</td>
			<td><input type="text" name="businessName" /></td>
		</tr>
		<tr>
			<td class="tableleft">主营业务</td>
			<td><input type="text" name="businessScope" /></td>
		</tr>
		<tr>
			<td class="tableleft">地址</td>
			<td><input type="text" name="address" /></td>
		</tr>
		<tr>
			<td class="tableleft">描述</td>
			<td><input type="text" name="description" /></td>
		</tr>
		<tr>
			<td class="tableleft">用户</td>
			<td>
				<select name="userKey" id="user_key">
				</select>
			</td>
		</tr>
		<tr>
			<td class="tableleft">商家类型</td>
			<td>
				<select name="merchantTypeKey" id="merchantType_key">
				</select>
			</td>
		</tr>
		<tr>
			<td class="tableleft">城市</td>
			<td>
				<select name="cityKey" id="city_key">
				</select>
			</td>
		</tr>
		<tr>
			<td class="tableleft"></td>
			<td>
				<button id="tbn_save" type="button" class="btn btn-primary">保存</button>
				&nbsp;&nbsp;
				<button type="button" class="btn btn-success" name="backid"
					id="backid">返回列表</button>
			</td>
		</tr>
	</table>
</form>
<!-- business code end -->

<jsp:include page="/admin/view/main/footer.jsp" />
<script
	src="<%=request.getContextPath()%>/admin/js/business/technology/merchant/merchant.js"></script>

<script>
    $(function () {       
		$('#backid').click(function(){
				window.location.href="<%=request.getContextPath()%>/admin/view/technology/merchant/merchantlist.jsp";
						});

	});
</script>
